package com.gluck.cases.boostrap.controller;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

/**
 * @ClassName BascController
 * @Desc 基础controller
 * @Author I am Gluck
 * @Date 2022/5/18 - 8:51 下午
 **/
public class BascController {

    protected void checkPermissions(String... permissions) {
        Subject subject = SecurityUtils.getSubject();
        subject.checkPermissions(permissions);
    }
}
